<template>
  <div class="box">
    <div id="preloader_3"></div>
    <div class="point">加载中...</div>
  </div>
</template>
  
<style scoped>
.box {
  width: 100%;
  height: 100vh;
  background-color: #f7f7f7;
}
#preloader_3 {
  position: absolute;
  top: 45%;
  left: 48%;
}

.point {
  position: absolute;
  top: 50%;
  left: 48%;
  font-size: 17px;
  font-weight: 600;
  color: #505050;
}

#preloader_3:before {
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background: blue;
  content: "";
  position: absolute;
  background: #9b59b6;
  animation: preloader_3_before 1.5s infinite ease-in-out;
}

#preloader_3:after {
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background: blue;
  content: "";
  position: absolute;
  background: #2ecc71;
  left: 22px;
  animation: preloader_3_after 1.5s infinite ease-in-out;
}

@keyframes preloader_3_before {
  0% {
    transform: translateX(0px) rotate(0deg);
  }

  50% {
    transform: translateX(50px) scale(1.2) rotate(260deg);
    background: #2ecc71;
    border-radius: 0px;
  }

  100% {
    transform: translateX(0px) rotate(0deg);
  }
}

@keyframes preloader_3_after {
  0% {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(-50px) scale(1.2) rotate(-260deg);
    background: #9b59b6;
    border-radius: 0px;
  }

  100% {
    transform: translateX(0px);
  }
}
</style>
    